<?php
namespace App\Components;
use Illuminate\Support\Facades\Redis;
/**
*	Redis订阅事件
*	过期事件
*/
class RedisKey {
	function __construct()
    {
		$this->Redis=new Redis();
		$this->Redis=$this->Redis::connection('publisher');
		$this->Redis->psubscribe(['__keyevent@*__:expired'],'keyCallback');
    }
	//过期通知
	function keyCallback($key){
		
	}
	//设置过期
	function insert($key,$outTime){
		
	}
}